package com.wanghai.carwashing.api.controller;

import com.wanghai.carwashing.common.helper.JsonHelper;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 *
 * @author ����
 */
@Controller
@RequestMapping("/")
public class HelloWorldController extends  BaseController{
    @RequestMapping(value = "/hello",method = {RequestMethod.POST,RequestMethod.GET})
    public  ResponseEntity<String>  hello(){
        System.out.println("key:"+request.getParameter("key"));
        System.out.println("hello");
        return new ResponseEntity<String>("[1,2,3]", JsonHelper.buildJsonHeaders(), HttpStatus.OK);
    }
}
